import News from './compoments/News';
import User from './compoments/User';
import Cate from './compoments/Cate';
import Comment from './compoments/Comment';
import Product from './compoments/Product';
import Upload from './compoments/Upload';

export const routes = [
	{ path:'/news',component:News,name:'news' },
	{ path:'/',component:User,name:'user'},
	{ path:'/cate',component:Cate,name:'cate'},
	{ path:'/comment',component:Comment,name:'comment'},
	{ path:'/product',component:Product,name:'product'},
	{ path:'/upload',component:Upload,name:'upload'}
];
// { path:'/user',component:User,children:[
//   {path:'',component:UserStart},
//   {path:':id',component:UserDetail},
//   {path:':id/edit',component:UserEdit,name:'userEdit'}
// ]
// }
